# demo code for while loop
command = ""
while True:
    command = input("> ").lower
    if command == "left":
        print("Moving left")
    elif command == "right":
        print("Moving right")
    elif command == "up":
        print("Moving up")
    elif command == "help":
        print(
            """
left -let Maliao Move 1 step to left
right -let Maliao Move 1 step to right
up -let Maliao Move 1 step to up
exit -exit the program
                """
        )
    elif command == "exit":
        break
    else:
        print("Sorry, I don't understand the command. Please try again.")
